<?php

namespace app\common;

enum VipStatus: int
{
    case VIP_STATUS_YES = 1;
    case VIP_STATUS_EXPIRED = 2;
    case VIP_STATUS_NO = 3;

    public function getStatus(): string
    {
        return match ($this) {
            self::VIP_STATUS_YES     => 'VIP',
            self::VIP_STATUS_EXPIRED => 'VIP已过期',
            self::VIP_STATUS_NO      => '不是VIP',
        };
    }
}